package cn.z2huo.knowledge.basic.internal.anonymous;

class Demo {

    public OneMethodInterface test(String dest) {

        int a = 10;

        return new OneMethodInterface() {

            private String labelString = dest;

            @Override
            public String readLabel() {
                System.out.println(a);
                System.out.println(dest);
                return labelString;
            }
        };
    }

    public static void main(String[] args) {
        OneMethodInterface destination = new Demo().test("hh");
    }
}
